/**
 * Created by Administrator on 2017/4/20 0020.
 */
Text3D=function(getContent,getFont){


    var text=getContent,
        height = 1,
        size = 15,
        hover = 30,
        curveSegments = 20,
        bevelThickness = 0.1,
        bevelSize = 1,
        bevelSegments = 8,
        bevelEnabled = true,
        font = undefined,
        fontName = "helvetiker", // helvetiker, optimer, gentilis, droid sans, droid serif
        fontWeight = "chinese2"; // normal bold
    var fontMap = {
        "helvetiker": 0,
        "optimer": 1,
        "gentilis": 2,
        "droid/droid_sans": 3,
        "droid/droid_serif": 4
    };

    var weightMap = {
        "regular": 1,
        "bold": 0
    };
    var textMesh;
    var material = new THREE.MeshBasicMaterial({color:0xffffff});

    CreateText();
    function CreateText() {
            var textGeo = new THREE.TextGeometry(text, {

                font: getFont,

                size: size,
                height: height,
                curveSegments: curveSegments,

                bevelThickness: bevelThickness,
                bevelSize: bevelSize,
                bevelEnabled: bevelEnabled,

                material: 0,
                extrudeMaterial: 1

            });
            textMesh = new THREE.Mesh(textGeo, material);
    }


    return textMesh;
}
